@import './variables.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './iconBg.scss';

// 深色主题
@import './themeDark/index.scss';
// 浅色主题
@import './themeLight/index.scss';

html,
body {
  height: 100%;
}

body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  font-size: 14px;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;

}

:focus {
  outline: none;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: auto;
  padding: 20px;
  border-radius: 15px;
}

.flex {
  display: flex;
}

@for $i from 1 to 4 {
  .flex#{$i} {
    flex: #{$i}
  }
}

.align-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

// 表格操作列
.tableoperation {
  .el-link:first-child {
    margin-left: 0px;
  }

  .el-link {
    margin-left: 20px;
  }

  .tableoperation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

// 表格背景色
.el-table,
.el-table__expanded-cell,
.el-table th,
.el-table tr {
  background-color: transparent;
}

// 表格 el-tooltip
.el-table .cell .el-tooltip {
  max-width: 100%;
  width: max-content;
  display: block;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}




// el 树组件自动出滚动条
.kcp-el-tree {
  overflow: auto;

  >.el-tree {
    >.el-tree-node {
      min-width: 100%;
      display: inline-block;
    }

    >.el-tree-node__content {
      display: none;
    }
  }
}

// 统一el-drawer__body 里文本颜色
.el-drawer__body {

  // 下选择
  .el-select-dropdown__item,
  // form表单标题
  .el-form-item__label,
  // 输入框
  .el-input__inner,
  .el-textarea__inner,
  .el-checkbox,
  .el-radio__label,
  .el-tree-node__label {
    color: $fontColor;
  }
}

// 统一table滚动条样式
.el-table__body-wrapper::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

/* 滚动轨道 */
.el-table__body-wrapper::-webkit-scrollbar-track {
  border-radius: 5px;
}

/* 滚动条 */
.el-table__body-wrapper::-webkit-scrollbar-thumb {
  width: 8px;
  background-color: #CBCDD1;
  opacity: 0.88;
  border-radius: 5px
}

// 统一滚动条样式
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

/* 滚动轨道 */
::-webkit-scrollbar-track {
  border-radius: 5px;
}

/* 滚动条 */
::-webkit-scrollbar-thumb {
  width: 8px;
  background-color: #CBCDD1;
  opacity: 0.88;
  border-radius: 5px
}